// import type { AppRouteRecordRaw } from '@/router/types';

import { PAGE_NOT_FOUND_ROUTE } from '@/router/routes/basic';
import serviceRouteData from './modules/router-data';

// 根路由
export const RootRoute = {
  path: '',
  name: 'Root',
  redirect: '/home/index',
  meta: {
    title: 'Root'
  },
  children: [
    {
      path: '/',
      name: 'home',
      component: () => import('@/layouts/default/index.vue'),
      redirect: '/home/index',
      meta: {
        title: 'home'
      },
      children: [
        {
          path: 'home/index',
          name: 'home',
          component: () => import('@/views/demo/index.vue'),
          meta: {
            title: '首页',
            affix: true
          }
        },
        ...serviceRouteData,
      ]
    }
  ]
};

// Basic routing without permission
export const basicRoutes = [PAGE_NOT_FOUND_ROUTE, RootRoute];
